<?php
    class homepage extends PageBase
    {
        public function index($string = '')
        {
            $page = $this->view( 'test' );
            $page->assign('test', array('a' => 'test1', 'b' => 'test2'));
            $page->use_cache();
            $page->output();
        }
    }